/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

var DataFrameController = new Class({
    
    frames: new Array(),
    
    addFrame: function(frame){
        this.frames[this.frames.length] = frame;
    },
    
    getFrames: function(){
        return this.frames;
    },
    
    find: function(id){
        
        var frame = null;
        
        Array.each(this.frames, function(tmpFrame,key){
           if(tmpFrame.getId() == id){
               frame = tmpFrame;
           } 
        });
        
        return frame;
    }
    
});


